/*
Project : One Page
Author  : Yusuf Solmaz
Date    : 20 /June /2023
 */

/* css reset from joshwcomeau.com */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html,
body {
    height: 100%;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg,
iframe {
    display: block;
    max-width: 100%;
}

iframe {
    aspect-ratio: 1/1;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

#root,
#__next {
    isolation: isolate;
}

html {
    scroll-behavior: smooth;
}

/* simple toggleTheme for main */

body {
    font-family: "Manrope", sans-serif;
    --clr-primary: #f1f1f1;
    --clr-secondary: #121212;
    background-color: var(--clr-primary);
    color: var(--clr-secondary);
}

body.toggleTheme {
    --clr-primary: #212121;
    --clr-secondary: #f1f1f1;
    background-color: var(--clr-primary);
    color: var(--clr-secondary);
}

/* Line-clamp */

.line-clamp8 {
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

/* Navbar */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9;
}

/* Header */

header {
    margin-top: 64px;
    z-index: 1;
}

.header_content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* back top */

a.backTop {
    position: fixed;
    right: 16px;
    bottom: 16px;
    background: dodgerblue;
    color: #ffffff;
    display: none;
    width: 42px;
    height: 42px;
    padding-top: 0.65rem;
    border-radius: 0.25rem;
    text-align: center;
}

a.backTop:hover {
    padding-top: 0.5rem;
}

a.backTop i {
    font-size: 1.5rem;
}

.loginClose {
    position: absolute;
    top: 16px;
    right: 16px;
}

input,
textarea {
    text-indent: 1ch;
}

input:focus,
textarea:focus {
    outline-color: dodgerblue;
}

article {
    max-width: 1320px;
    margin: 0 auto 1rem;
    padding: 2rem 1rem;
    text-align: justify;
}

article p,
section#about p,
section#news p {
    max-width: 96ch;
    font-size: 0.932rem;
    margin: 1rem auto;
}

.brand-container {
    position: relative;
    height: 320px;
    cursor: pointer;
    width: 240px;
    height: 400px;
}

.brand-container .internship {
    position: absolute;
    top: 12px;
    left: 6px;
}

.brand-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 240px;
    height: 400px;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.35),
        rgba(30, 144, 255, 0.35)
    );
    z-index: 1;
    border-radius: 16px;
}

.brand-container img {
    width: 240px;
    height: 400px;
    object-fit: cover;
}

.brand-container:hover .brand-container img {
    transform: scale(1.1);
}

.brand-content {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 2;
}

.brand-content span.arrow {
    transition: 0.3s ease-out;
}

.brand-content:hover span.arrow {
    transform: translateX(6px);
}

section {
    scroll-margin-block-start: 6rem;
}

section#about {
    background-image: url("img/parallax.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    padding: 2rem 1rem;
}

.blog {
    transition: 0.3s ease-out;
    cursor: pointer;
    border-radius: 0.5rem;
    position: relative;
}

.blog:hover {
    transform: scale(1.05);
}

.detailed {
    position: absolute;
    top: 0;
    left: -2px;
    background-color: dodgerblue;
    color: #f1f1f1;
    transform: rotate(-45deg) translate(-12px, 16px);
}
